/*
******************
* author: 马丰彦
* date: 2019-08-15
* function: 订购列表api
******************
*/

import request from '@/utils/request'

// 请求订购列表
export function getList(data) {
  return request({
    // url: 'http://192.168.9.213:7300/mock/5d367a77f761ce0418fccce1/business-center/bcbs/order/list.do',
    url: '/orderManage/queryOrderList.do',
    method: 'post',
    data
  })
}

// 详情
export function getDetail(data) {
  return request({
    // url: 'http://192.168.9.213:7300/mock/5d367a77f761ce0418fccce1/business-center/bcbs/order/detail.do',
    url: '/orderManage/queryOrderInfo.do',
    method: 'post',
    data
  })
}

// 取消续订
export function cancelBuys(data) {
  return request({
    url: '/orderManage/cancelGoon.do',
    method: 'post',
    data
  })
}

// 取消订购
export function cancelDings(data) {
  return request({
    url: '/orderManage/cancelOrder.do',
    method: 'post',
    data
  })
}

// 导出excel
export function excel(data) {
  return request({
    url: '/orderManage/orderListDownload.do',
    method: 'post',
    data
  })
}
